import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import home from '@/home'
import login from '@/view/login'
import register from '@/view/register'
import newchat from '@/view/chat/newchat'

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'home',
        component: home
    }, {
        path: '/login',
        name: "login",
        component: login

    }, {
        path: '/register',
        name: 'register',
        component: register
    }, {
        path: "/newchat",
        name: "/newchat",
        component: newchat
    }]
})